<link rel="stylesheet" type="text/css" href="../addons/jy_weishop/custom/templates/mobile/css/coupon-new.css?v=2017030310125">
<div class="fui-page">
	<div class="fui-header">
		<div class="fui-header-left">
			<a class="back" href="javascript:;" ng-click="access_json('jy_weishop/coupon.myindex/main')"></a>
		</div>
		<div class="title">详情</div>
		<div class="fui-header-left"></div>
	</div>
	<div class="fui-content navbar coupon-page">
		<div class="coupon-detail {{pagedata.coupon.color}}">
			<div class="detail-dots"></div>
			<div class="detail-head">
				<div class="inner">
					<div class="title">
						<div class="text">{{pagedata.coupon.title}}</div>
					</div>
					
					<div ng-if="pagedata.coupon.backtype==2" class="childs">
						<div class="child">
							<div class="subtitle"> {{pagedata.coupon.title2}}</div>
							<div class="bigtitle">立返</div>
						</div>
						<div class="child">
							
							<div ng-if="pagedata.coupon.backmoney>0" class="subtitle"><span class="bold">{{pagedata.coupon.backmoney}} </span><span class="threetitle">元余额</span></div>
							
							
							<div ng-if="pagedata.coupon.backcredit>0" class="subtitle"><span class="bold">{{pagedata.coupon.backcredit}} </span><span class="threetitle">积分</span></div>
							
							
							<div ng-if="pagedata.coupon.backredpack>0" class="subtitle"><span class="bold">{{pagedata.coupon.backredpack}} </span><span class="threetitle">元红包</span></div>
							
						</div>
					</div>
					
					<div ng-if="pagedata.coupon.backtype!=2" class="bigtitle"> {{pagedata.coupon.title3}}</div>
					<div ng-if="pagedata.coupon.backtype!=2" class="subtitle"> {{pagedata.coupon.title2}}</div>
				
					<div class="usetime">
						<div class="text">
						<div ng-if="pagedata.coupon.timelimittype==0" class="text">有效期:							永久有效						</div>						<div ng-if="pagedata.coupon.timelimittype==1" class="text">有效期:							领取后 {{pagedata.coupon.timedays}} 天内有效						</div>						<div ng-if="pagedata.coupon.timelimittype==2" class="text">有效期:							{{pagedata.log.time}}						</div>							</div>
					</div>
				</div>
			</div>
			<div class="detail-body">
				<div class="block">
				
					<div ng-if="pagedata.coupon.merchid!=0" class="title">使用商铺</div>
										<div class="text dot" ng-if="pagedata.coupon.merchid!=0" >						限购[{{pagedata.merchname}}]店铺商品					</div>	
					
					<div class="title">使用说明</div>
					<div class="text">						<div ng-if="pagedata.coupon.isdescsys==1">														<div ng-if="pagedata.coupon.coupontype==2">								{{pagedata.setting.buydesc}}							</div>							<div ng-if="pagedata.coupon.coupontype==1">								{{pagedata.setting.rechargedesc}}							</div>						</div>						<div ng-if="pagedata.coupon.isdescsys==0">													{{pagedata.coupon.desc}}						</div>					</div>				</div>
				<div class="block">
					<div class="title">有效期限</div>
					<div class="text">
						<div ng-if="pagedata.coupon.timelimittype==0" class="text">有效期:							永久有效						</div>						<div ng-if="pagedata.coupon.timelimittype==2" class="text">有效期:							领取后 {{pagedata.coupon.timedays}} 天内有效						</div>						<div ng-if="pagedata.coupon.timelimittype==2" class="text">有效期:							{{pagedata.coupon.limittimes}}						</div>						<div  ng-if="pagedata.coupon.merchid!=0" >						限购[{{pagedata.coupon.merchname}}]店铺商品						</div>					</div>
				</div>
				<div class="block">
					<div class="title">使用限制</div>
						<div ng-if="pagedata.coupon.limitusetype==1" class="text">不允许与促销优惠同时使用</div>											<div ng-if="pagedata.coupon.limitusetype==2" class="text">不允许与会员折扣同时使用</div>										<div ng-if="pagedata.coupon.limitusetype==3" class="text">不允许与促销优惠和会员折扣同时使用</div>
					<div ng-if="pagedata.coupon.limitgoodtype==1" class="text">允许以下商品使用:</div>													<div ng-repeat="item in pagedata.goods">								<div class="text">{{item.title}}</div>															</div>
					
											<div  ng-if="pagedata.coupon.limitgoodcatetype==1"  class="text">允许以下商品分类使用:</div>						<div ng-repeat="item in pagedata.group">							<div class="text">{{item.title}}</div>							</div>						<div ng-if="pagedata.coupon.limitgoodtype==0 && pagedata.coupon.limitgoodcatetype==0 &&  pagedata.coupon.limitusetype==0 &&  pagedata.coupon.coupontype!=2" class="text">无</div>				</div>
			</div>
		</div>
	</div>
	<div class="fui-navbar">				
		<div class="nav-item btn btn-gray"  ng-if="pagedata.log.past==1" >			已过期		</div>		<div class="nav-item btn btn-gray"  ng-if="pagedata.log.isuse==1" >			已使用		</div>		<div class="nav-item btn btn-{{pagedata.coupon.color}}" ng-if="item.isuse!=1 && item.past!=1" >				<a ng-if="pagedata.coupon.coupontype==2"  href="javascript:;" ng-click="access_json('core/member.recharge/')"  style="color:#ffffff;">					立即去充值
				</a>				<a ng-if="pagedata.coupon.coupontype==1"  href="javascript:;" ng-click="access_json('jy_weishop/index/main')"  style="color:#ffffff;">					立即使用				</a>
		</div>
	</div>
</div>